


str="AFFPGS{pbatenghyngvbaf!!!}"
def caesar(plaintext,x):
    str_list = list(plaintext)
    i = 0
    while i < len(plaintext):
        if not str_list[i].isalpha():
            str_list[i] = str_list[i]
        else:
            a = "A" if str_list[i].isupper() else "a"
            str_list[i] = chr((ord(str_list[i]) - ord(a) - x) % 26 + ord(a) or 5)
        i = i + 1

    return ''.join(str_list)

for i in range(1,26):
    flag = caesar(str,i)
    print(flag)
